#include<iostream>
using namespace std;
using ll=long long;

int main(){
	ll n;
	cin>>n;
	cout<<2*n%5<<endl; 
	if((2*n)%5==0)cout<<"Yes";
	else cout<<"No";
	return 0; 
} 
